<?php
class message {
	/*
		Message Functions
	*/
		public function make($type = 'message', $header = "", $content = "", $small = false) {
			$r .= "<div class='message-wrapper";
			if($small == true) {
				$r .= ' message-small';
			}
			else {
				$r .= ' message-large';
			}
			$r .= "'>";
			switch ($type) {
				case 'message':
					$r .= "<div class='message-message message'>\n\t<div class='message-message-header message-header'>".$header."</div>\n\t<div class='message-message-content message-content'>\n\t\t<p>".$content."</p>\n\t</div>\n</div>";
					break;
				case 'success':
					$r .= "<div class='message-ok message'>\n\t<div class='message-ok-header message-header'>".$header."</div>\n\t<div class='message-ok-content message-content'>\n\t\t<p>".$content."</p>\n\t</div>\n</div>";
					break;
				case 'error':
					$r .= "<div class='message-error message'>\n\t<div class='message-error-header message-header'>".$header."</div>\n\t<div class='message-error-content message-content'>\n\t\t<p>".$content."</p>\n\t</div>\n</div>";
					break;
				case 'warning':
					$r .= "<div class='message-warning message'>\n\t<div class='message-warning-header message-header'>".$header."</div>\n\t<div class='message-warning-content message-content'>\n\t\t<p>".$content."</p>\n\t</div>\n</div>";
					break;
			}
			$r .= "</div>";
			return $r;
		}
}
?>